<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import { promiseErrorCatcher } from './utils'

@Component
export default class App extends Vue {
  beforeCreate () {
    promiseErrorCatcher.add()
  }
  beforeDestroy () {
    promiseErrorCatcher.remove()
  }
}
</script>
